package comparators;

import java.util.Comparator;

public class IntegerComparator implements Comparator<Object>{
	@Override
	public int compare(Object arg0, Object arg1) {
		String i1 = (String)arg0;
		String i2 = (String)arg1;
		Integer int1 = Integer.parseInt(i1);
		Integer int2 = Integer.parseInt(i2);
		return int1.compareTo(int2);
	}

	public boolean equals(Object o2){
		return this.equals(o2);
	}
}